package com.czx.drivingtest.utils;

import cn.hutool.core.lang.Snowflake;

/**
 * 雪花算法id生成工具
 *
 * @author czx
 * @version 2020/10/27 9:11 下午
 * @since JDK12
 */
public class IdWorker {

    private static final Snowflake SNOWFLAKE = new Snowflake(1, 1);
    public static long nextId() {
        return SNOWFLAKE.nextId();
    }
}
